#pragma once
#include <bitset>

namespace wxx
{
	struct ptr_bitset_t : std::bitset<8 * sizeof(void*)>
	{
		ptr_bitset_t(unsigned long value)
			: bitset(value)
		{
		}

		ptr_bitset_t(unsigned long long value)
		{
			*this |= ((value & 0xffffffff00000000) >> 32);
			*this <<= 32;
			*this |= (value & 0xffffffff);
		}
	};
}